<template>
  <div class="item">
    <video :src="info.url" controls width="100%"></video>
  </div>
</template>

<script>
import { getDetail } from "@/api/video";

export default {
  data() {
    return {
      info: {},
    };
  },
  async mounted() {
    let { id } = this.$route.params;
    let info = await getDetail({ id });
    if(info){
      this.info=info
    }
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.item {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translate(0,-50%);
}
</style>
